<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Ramda</title>
</head>
<body>
    <script src="../ramda.min.js"></script>
    <script>
        function detail(record, id) {
            return record.id === id;
        }
        var data = [
            { id: 824, name: 'Richie Furay' },
            { id: 956, name: 'Dewey Martin' },
            { id: 313, name: 'Bruce Palmer' },
            { id: 456, name: 'Stephen Stills' },
            { id: 177, name: 'Neil Young' }
        ];
        var values = [177, 456, 999];
        var res = R.innerJoin(detail, data, values);
        console.log(res);
        
    </script>
</body>
</html>